// JavaScript Document


$(document).ready(function(){
$(window).wresize(abc); 
		abc();	
});


function abc(){
	var h = document.body.clientHeight;
	var w = document.body.clientWidth;
	$(".l_service_list").css("height",(h-364));
	$(".xuanxiangka").css("height",(h-374));
	$(".r_customer_ls_news").css("height",(h-372));
	$(".l_serviceList").css("width",(w-358));
	$(".box").css("top",(h-150)/2);
	$(".box").css("left",(w-300)/2);
	$(".xuanxiangka2").css("height",(h-136));
}


function  secBoard(obj,listname,n)
{
	var lia = document.getElementById(obj).getElementsByTagName("li");
	var lialen=lia.length
	for(i=0; i<lialen; i++){
		lia[i].className = "ocurMenu";
	}
	lia[n-1].className = "curMenu";
		
	for (var i =1,j; j=document.getElementById(listname+"_"+i); i++){
			j.style.display="none";
	}
	document.getElementById(listname+"_"+n).style.display="block";
}
